import { request } from "@/utils/service"
import type * as regulator from "./types/index" /** 增 */
// 查
export function getRegulatorDataApi(params: regulator.Regulator) {
  return request({
    url: "task/query",
    method: "get",
    params
  })
}

// 增加
export function createRegulatorDataApi(data: regulator.getRegulator) {
  return request({
    url: "task/add",
    method: "post",
    data
  })
}
/** 改 */
export function updateRegulatorDataApi(data: any) {
  return request({
    url: "task/update",
    method: "put",
    data
  })
}
